<html>
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body style="font-size: 14px;max-width: 760px;margin: 10px auto;">

<img width="137" height="36" style="border: none;"  alt=""/>
<h1 align="center" style="padding: 10px 0 30px;margin: 0;text-align: center;">
    上海润米科技有限公司
    <br/>
    <small>PO订单</small>
</h1>
<table width="100%"  border="0" cellspacing="1" cellpadding="0" style="border-spacing: 0;border-collapse: collapse;margin-bottom: 10px;">
    <tr>
        <td width="50%" style="text-align: left;">甲方 ：${item.company_name}</td>
        <td width="50%" style="text-align: right;">PO订单编号 ：${item.purchase_order_code}</td>
    </tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%" style="border-spacing: 0;border-collapse: collapse;margin-bottom: 20px;">
    <tr>
        <td width="50%" style="text-align: left;">乙方：${item.receiver_factory_name}</td>
        <td width="50%" style="text-align: right;">制表日期：${item.create_time?string('yyyy年MM月dd日')}</td>
    </tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%" style="border-spacing: 0;border-collapse: collapse;margin-bottom: 30px;">
    <thead>
    <tr style="font-size: 14px;">
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">序号</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">货号</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">69码</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">产品名称</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">数量</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">
            <span>单价</span><br/>
            <small>
                <#if 1 == item.is_freight>
                (含税运)
                <#else >
                (含税)
                </#if>
            </small>
        </th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">
            <span>总金额</span><br/>
            <#if 1 == item.is_freight>
                (含税运)
            <#else >
                (含税)
            </#if>
        </th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">预计到仓日期</th>
        <th style="font-weight: normal;border: 1px solid #333;text-align: center;">备注</th>
    </tr>
    </thead>
    <tbody>
    <#list poDetails as poDetail>
    <tr>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail_index+1}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.skuCode}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.barCode}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.itemName}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.purchaseNum}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.purPrice / 100}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.totalAmount / 100}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">
        <#if item.expect_receiver_time??>
            ${item.expect_receiver_time?string('yyyy/MM/dd')}
        </#if>
        </td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${poDetail.remark}</td>
    </tr>
    </#list>
    <tr>
        <td colspan="4" style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">合计</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${totalPurchaseNum}</td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;"></td>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">${totalAmount / 100}</td>
        <td colspan="2" style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;"></td>
    </tr>
    <tr>
        <td style="font-weight: normal;border: 1px solid #333;text-align: center;padding: 5px 0;font-size: 12px;">备注</td>

        <td colspan="8" style="font-weight: normal;border: 1px solid #333;text-align: left;padding: 5px 5px;font-size: 12px;">${item.remark}</td>

    </tr>
    </tbody>
</table>
<#list 1..remainLine as i>
 <br/>
</#list>
<table border="0" cellspacing="1" cellpadding="0" width="100%" style="border-spacing: 0;border-collapse: collapse;margin-bottom: 10px;">
    <tr>
        <td width="50%" style="text-align: left;padding: 10px 0">供应商 _________________</td>
        <td width="50%" style="text-align: right;padding: 10px 0">润米 _________________</td>
    </tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%" style="border-spacing: 0;border-collapse: collapse;margin-bottom: 20px;">
    <tr>
        <td width="50%" style="text-align: left;padding: 10px 0">盖章 _________________</td>
        <td width="50%" style="text-align: right;padding: 10px 0">盖章 _________________</td>
    </tr>
</table>
</body>
</html>